#! python3
#coding=utf8

def XorTest(inlist):
    _l = len(inlist)
    _ref = range(_l)
    out = 0
    for i in inlist:
        out = out ^ i
    for i in _ref:
        out = out ^ i
    return out

test = [1,2,3,4,5,8,6,7,8,9]
r = XorTest(test)
print(r)

